IModel.GetRelationsByFieldTagOf method ¶
Namespace: NextDesign.Core
Description¶
Gets the relationship with the given model from the field with the given tag. This method evaluates IContextOption.PlModelAccessMode.
Returns an empty collection if no such association exists.
argument¶
Name | Type | Description |
---|---|---|
opposite | IModel | Other model null cannot be specified. |
fieldTag | string | Field tag name If null or an empty string is specified, the return value of this method will be an empty collection. |
value | string | String representation of the tag value The default value is null. If null or empty string is specified, it is evaluated only by the presence or absence of tag for the field. |
Return value¶
- IRelationshipCollection
Exception¶
Name | Exception Class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for opposite |